import { TimeStamp } from ".";
export interface Permission extends TimeStamp {
    _id: string;
    name: string;
	key: string;
	status?: boolean;
	desc?: string;
	type: string;
	path?: string;
	label?: string;
	component?: string;
	icon?: string;
	children?: (Permission | string)[];
}

export type CreatePermissionReq = Omit<Permission,"_id" | keyof TimeStamp> & {
    
};

export interface UpdatePermissionReq extends Omit<Partial<Permission>,keyof TimeStamp> {
    
}